package com.longwang.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.longwang.entity.Admin;
import com.longwang.repository.AdminRepository;
import com.longwang.service.AdminService;

/**
 * 管理员service接口实现类
 * @author LongWang
 *
 */
@Service("adminService")
@Transactional
public class AdminServiceImpl implements AdminService {

	@Resource
	private AdminRepository adminRepository;
	
	@Override
	public Admin findByUserName(String userName) {
		// TODO Auto-generated method stub
		return adminRepository.findByUserName(userName);
	}

}
